//package com.itbuka.listener;
//
//import com.itbuka.config.RabbitConfig;
//import com.itbuka.domain.Detail;
//import com.itbuka.feign.GoodsFeign;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import java.util.Map;
//
//@Component
//public class AdListener {
//    @Autowired
//    private GoodsFeign goodsFeign;
//    @RabbitListener(queues = RabbitConfig.GOODS_QUEUE)
//    public void goods(String id){
//        Detail data = goodsFeign.fingDetail(Long.parseLong(id)).getData();
//    }
//}
